function E(obj)
{
	var desObjID="N" + obj.getAttribute("N");
	var desObj=document.getElementById(desObjID);
	
	switch(obj.getAttribute("Ex") )
	{
		case "P":
			obj.setAttribute("Ex","M");
			obj.src="im/m.gif";
			desObj.style.display="";
			break;
		case "Fp":
			obj.setAttribute("Ex","Fm");
			obj.src="im/fm.gif";
			desObj.style.display="";
			break;
		case "Lp":
			obj.setAttribute("Ex","Lm");
			obj.src="im/lm.gif";
			desObj.style.display="";
			break;
		case "Rp":
			obj.setAttribute("Ex","Rm");
			obj.src="im/rm.gif";
			desObj.style.display="";
			break;
		case "Tp":
			obj.setAttribute("Ex","Tm");
			obj.src="im/tm.gif";
			desObj.style.display="";
			break;
		case "M":
			obj.setAttribute("Ex","P");
			obj.src="im/p.gif";
			desObj.style.display="none";
			break;
		case "Fm":
			obj.setAttribute("Ex","Fp");
			obj.src="im/fp.gif";
			desObj.style.display="none";
			break;
		case "Lm":
			obj.setAttribute("Ex","Lp");
			obj.src="im/lp.gif";
			desObj.style.display="none";
			break;
		case "Rm":
			obj.setAttribute("Ex","Rp");
			obj.src="im/rp.gif";
			desObj.style.display="none";
			break;
		case "Tm":
			obj.setAttribute("Ex","Tp");
			obj.src="im/tp.gif";
			desObj.style.display="none";
			break;
		default:
			break;
	}
}

var oldSelectNode=null;
var oldSelNodeTxt="";
var oldSelectID="";
	
//切换文本字体
function C(obj,strNodeID)
{
	var tmpSrc;
	if(oldSelectNode!=null)
	{
		tmpSrc=oldSelectNode.src;
		oldSelectNode.src=oldSelectNode.getAttribute("S");
		oldSelectNode.setAttribute("S",tmpSrc);
		
		document.getElementById("sT" + oldSelectID).style.color="";
		document.getElementById("sT" + oldSelectID).style.fontWeight="";
	}
	document.getElementById("sT" + strNodeID).style.color="blue";
	document.getElementById("sT" + strNodeID).style.fontWeight="bold";
	
	tmpSrc=obj.src;
	obj.src=obj.getAttribute("S");
	obj.setAttribute("S",tmpSrc);

	oldSelectNode=obj;
	oldSelectID=strNodeID;
	
	document.getElementById("sT" + strNodeID).focus();
}